<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/resource/UserPwoer.tld" prefix="p"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>支付</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/DDMBase.js"></script>
<link rel="stylesheet"
	href="${path }/resource/weixin/css/personal-msg.css">
<style type="text/css">
.none {
	display: none;
}
</style>
</head>
<body>
	<!-- 头部 -->
	<jsp:include page="_top.jsp"></jsp:include>
	<!-- 内容 -->
	<!-- 导航 -->
	<div class="padding-1 color-9">
		<span class="color-9">金币充值</span>
	</div>
	<form class="form-horizontal" id="dataform"
		onsubmit="javascripr:return false;">
	<div class="pull-msg back-w margin-t1 padding-10 font-s2 ">
		<div class="line"></div>
		<span class="float-l chose-span">充值金额</span>
		<div class="chose1">
			<select id="plan" name="je" class="input" onchange="changePlan(this)" >
				<option value="">--请选择充值金额--</option>
				<option value="5">5金币5元</option>
				<option value="10">10金币10元</option>
				<option value="20">20金币20元</option>
				<option value="30">30金币30元</option>
				<option value="40">50金币50元</option>
				<option value="100">100金币100元</option>
			</select>
		</div>
	</div>
	
	<div class="padding-1 user-div back-w color-9">
		支付金额：<span id="money" class="color-y font-w6"></span>元
	</div>
	<div class="margin-1 margin-t1 ">
		<button id="getBrandWCPayRequest" onclick="myForm.submit()"
			class="color-w back-y psw-btn">支付</button>
	</div>
	</form>
	<script type="text/javascript">
	
	var myForm;
	$(function() {
		//初始化
		MTools.autoFullSelect();
		myForm = MForm.initForm({
			invokeUrl : basePath+"/customer/jbCz",
			afterSubmit : function(loj) {
				if(loj.getValue("page")!=""){
					  layer.open({
					    type: 2
					    ,content:loj.getValue("info")+ ',正在跳转支付。。'
					  });
					  MTools.redirect(basePath+"/customer/goodsPay/createTradeByWXBrowse?page="+loj.getValue("page"));
				}else{
					layer.open({
						content : loj.getValue("info"),
						btn : '确定',
						end : function() {
							MTools.redirect("${path}/index");
						}
					});
				}
			},
		});
	
	})
	
	
		function changePlan(node){
			$("#money").html($(node).val());
		}
	</script>

	
</body>
</html>